package meiyunting.shiwuzhaoling.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import meiyunting.shiwuzhaoling.model.ItemStatus;
import meiyunting.shiwuzhaoling.model.ItemType;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 物品信息数据传输对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ItemDTO {
    private ItemStatus status;
    private ItemType type;
    private String title;
    private String description;
    private String contactInfo;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    private LocalDateTime lostTime; // 丢失时间或拾获时间
    
    // 图片不包含在DTO中，由MultipartFile处理
} 